﻿(function() {

  require.config({
    deps: ['main'],
    paths: {
      libs: '../assets/libs',
      jquery: '../assets/libs/jquery/jquery',
      backbone: '../assets/libs/backbone/backbone',
      underscore: '../assets/libs/underscore/underscore',
      jquery_ui: '../assets/libs/jquery/jquery-ui',
      leaflet: '../assets/libs/leaflet/leaflet',
      text: '../assets/libs/require/text',
      use: '../assets/libs/require/use',
      photo: './models/photo',
      album: './collections/album',
      photoView: './views/photo',
      albumView: './views/album',
      addView: './views/addPhoto',
      localStorage: './storages/local_storage',
      templates: '../assets/templates'
    },
    use: {
      backbone: {
        deps: ['use!underscore', 'jquery'],
        attach: 'Backbone'
      },
      underscore: {
        attach: '_'
      },
      jquery_ui: {
        deps: ['use!jquery']
      }
    }
  });

}).call(this);
